package com.yungu.swift.common.dao;

import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.common.model.dto.CommonTagDto;
import com.yungu.swift.common.model.dto.CommonStarTagDto;
import com.yungu.swift.common.model.dto.CommonTextTagDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author Zerrion
 */
@Mapper
public interface CommonTagMapper extends IMapper<CommonTagDto> {
    /**
     * 获取带星级标签
     *
     * @param params 参数集合
     * @return ResponseData
     * @author Zerrion
     * @date 2018/1/16
     */
    List<CommonStarTagDto> listStarTag(Map<String, Object> params);

    /**
     * 获取文本标签
     *
     * @param params 参数集合
     * @return ResponseData
     * @author Zerrion
     * @date 2018/1/16
     */
    List<CommonTextTagDto> listTextTag(Map<String, Object> params);

    /**
     * 校验标签是否可用
     * @param params
     * @return
     */
    Integer verification(Map<String, Object> params);
}